import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  // base: '/qr-code-web/',
  routes: [{
    path: '*',
    redirect: '/userManage'
  }, {
    path: '/login',
    name: 'login',
    component: () => import('@/view/layout/login')
  },
  // 数字管理系统-jianing
  {
    path: '/',
    name: 'userManage',
    component: () => import('@/view/jianing/main'),
    children: [{
      path: '',
      alias: '/index',
      name: 'home',
      meta: {
        name: '首页'
      },
      component: () => import('@/view/jianing/home')
    }, {
      path: '/userManage',
      name: 'userManage',
      meta: {
        name: '用户管理'
      },
      component: () => import('@/view/jianing/userManage')
    }, {
      alias: '/',
      path: '/kmlManage',
      name: 'kmlManage',
      meta: {
        name: '设计输入'
      },
      component: () => import('@/view/jianing/kmlManage')
    // }, {
    //   alias: '/',
    //   path: '/excelManage',
    //   name: 'excelManage',
    //   meta: {
    //     name: '施工图纸生成'
    //   },
    //   component: () => import('@/view/jianing/excelManage')
    }, {
      alias: '/',
      path: '/networkServerSystem',
      name: 'networkServerSystem',
      meta: {
        name: '网络系统图(单交接箱)'
      },
      component: () => import('@/view/jianing/networkServerSystem')
    }, {
      alias: '/',
      path: '/networkServerSystem2',
      name: 'networkServerSystem2',
      meta: {
        name: '网络系统图(双交接箱)'
      },
      component: () => import('@/view/jianing/networkServerSystem2')
    }, {
      alias: '/',
      path: '/batchUploadExecl',
      name: 'batchUploadExecl',
      meta: {
        name: '批量导入'
      },
      component: () => import('@/view/jianing/batchUploadExecl')
    }, {
      alias: '/',
      path: '/fbt288',
      name: 'fbt',
      meta: {
        name: '宽带光缆分布图(288芯)'
      },
      component: () => import('@/view/jianing/fbt')
    }, {
      alias: '/',
      path: '/fbt576',
      name: 'fbt2',
      meta: {
        name: '宽带光缆分布图(576芯)'
      },
      component: () => import('@/view/jianing/fbt2')
    }, {
      alias: '/',
      path: '/contrastManage',
      name: 'contrastManage',
      meta: {
        name: '图标对比'
      },
      component: () => import('@/view/jianing/contrastManage')
    }, {
      alias: '/',
      path: '/historyManage',
      name: 'historyManage',
      meta: {
        name: '线路图记录'
      },
      component: () => import('@/view/jianing/historyManage')
      },{
        alias: '/',
        path: '/systemHistory',
        name: 'systemHistory',
        meta: {
          name: '系统图记录'
        },
        component: () => import('@/view/jianing/systemHistory')
      },  {
      path: '/test',
      name: 'test',
      meta: {
        name: '测试页面'
      },
      component: () => import('@/view/jianing/test')
    }]
  }
  ]
})
